﻿@model IEnumerable<DenderaMvcWeb.Models.anagrafica>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.id_anag)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.piva)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ragione_soc)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.via)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.citta)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.provincia)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.stato)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tel)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.mail)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.fornitore)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.cliente)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.disabilitato)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.cod_anag_esterna)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.default_owner)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.id_anag)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.piva)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ragione_soc)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.via)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.citta)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.provincia)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.stato)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.mail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.fornitore)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.cliente)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.disabilitato)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.cod_anag_esterna)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.default_owner)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.id_anag  }) |
            @Html.ActionLink("Details", "Details", new { id=item.id_anag  }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.id_anag }) 
        </td>
    </tr>
}

</table>
